﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcConfirmarReserva.Models.Reserva>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Confirmacion de Reserva</h2>

     <table>
        <tr>
            <th></th>
            <th>
                Id
            </th>
            <th>
                Id Canchita
            </th>
            <th>
                Dia
            </th>
            <th>
                Hora
            </th>
             
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Confirmar", "Accept", new { id=item.codigo }) %> |
                <%: Html.ActionLink("Rechazar", "Reject", new { id = item.codigo })%>
            </td>
            <td>
                <%: item.codigo %>
            </td>
            <td>
                <%: item.canchita %>
            </td>
            <td>
                <%: item.nomDia %>
            </td>
             <td>
                <%: item.nomHora %>
            </td>
        </tr>
    
    <% } %>

    </table>

</asp:Content>
